Questions and troubleshooting
Resolve common Web Components integration issues and browser errors.
General
Can I contribute to the future development of FactFinder Web Components?
Yes. Although the Web Components codebase is closed, you can discuss and propose issues, changes, and features at GitHub issues.
We are grateful for any feedback. Do not hesitate to ask questions or share concerns.
Can I see upcoming breaking changes and proposals?
Yes, at GitHub issues. All related issues are tagged accordingly.
You can propose your own ideas or functionality. With no objections, breaking changes apply in the specified version.
Which browsers do FactFinder Web Components support?
FactFinder Web Components uses the official Web Components polyfill. It supports Chrome, Firefox, Edge, Safari 9+, IE11+, Chrome Android, and Mobile Safari.
We test against the latest version of each browser.
How can I find out which data is available in a Web Component's HTML template?
Each FactFinder Web Component has a property containing the data it displays. Access it from the browser console.
document.querySelector("ff-record-list").records
document.querySelector("ff-record").recordData
document.querySelector("ff-asn-group").group
document.querySelector("ff-breadcrumb-trail-item").breadCrumbIrailItemMost browsers support $0, which references the selected element in DevTools' Elements tab.
$0.pagingItemSee the API tab of each element for available properties.
I want to use FactFinder Web Components with Angular, but data binding conflicts with Angular's {{ }} binding. Can you fix it?
Add Angular's ngNonBindable attribute to the parent element. This prevents Angular from parsing double curly braces.
When both bindings must exist in the same element, use:
The <ng-container> tag is not rendered in the DOM.
Alternatively, change the default FactFinder Web Components binding delimiters through ff-communication's mustache-delimiters attribute. See the Underlying Engine (Mustache) section of the Template Engine documentation.
HTML bindings still require an additional pair of curly braces. Use ngNonBindable for these bindings:
Use triple curly braces regardless of your custom delimiters.
How can I embed FactFinder Web Components into React templates?
Ensure React does not resolve Web Components data bindings. Render the bindings as verbatim strings.
SEO crawlers index unresolved https://shop.com/{{data.binding}} URLs, which result in a 404.
Use data-* attributes for images and redirects.
For anchors:
For successful tracking, use data-redirect. Without it, the browser may redirect before tracking succeeds.
For images:
“Show more” in ff-asn-group is always visible.
The data-container="showMore" element is probably inside data-container="detailedLinks". Place it outside that container.
Hit highlighting in ff-suggest or ff-asn-group displays as raw HTML. How do I make it render correctly?
This usually happens when a custom template uses double curly braces, {{ }}. They render text as-is.
Use triple curly braces, {{{ }}}, so the highlighting markup renders as HTML. See the ff-suggest documentation or the Template Engine documentation.
Our polyfills seem to clash with the Web Components polyfills.
Use a polyfill compatible with the Web Components polyfill.
A clash may produce errors involving Symbol.iterator or Promise. For supported features, see the Web Components polyfill repository.
If this does not resolve the issue, contact us for a custom solution.
Errors
Access to XMLHttpRequest has been blocked by CORS policy.
To use the Web Components library, ask the FactFinder Service Desk to enable it for your instance.
Last updated
Was this helpful?