HTML Elements › Forums › Accordion › Error on IE Edge
Tagged: accordion
This topic contains 3 replies, has 2 voices, and was last updated by admin 3 weeks, 5 days ago.
Viewing 4 posts - 1 through 4 (of 4 total)
- AuthorPosts
- November 15, 2019 at 12:42 pm #100506
<div>
<div>SCRIPT5007: SCRIPT5007: Unable to get property ‘get’ of undefined or null reference smart.elements.js (6,80685)</div>
</div>
<div></div>
<div></div>November 15, 2019 at 12:46 pm #100507Web Components require polyfill for Edge. You can include webcomponents-lite.js.
Please, refer to https://www.htmlelements.com/demos/accordion/basic/.
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Accordion Overview</title> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> <link rel="stylesheet" type="text/css" href="../../source/styles/smart.default.css" /> <link rel="stylesheet" type="text/css" href="../../styles/demos.css" /> <link rel="stylesheet" type="text/css" href="styles.css" /> <script type="text/javascript" src="../../source/webcomponents-lite.js"></script> </head> <body> <smart-accordion> <smart-accordion-item label="First Item">First Item Content.</smart-accordion-item> <smart-accordion-item label="Second Item">Second Item Content.</smart-accordion-item> <smart-accordion-item label="Third Item">Third Item Content.</smart-accordion-item> <smart-accordion-item label="Fourth Item">Fourth Item Content.</smart-accordion-item> </smart-accordion> <!-- scripts --> <script type="module" src="../../source/modules/smart.accordion.js"></script> <script type="module" src="index.js"></script> </body> </html>
Regards,
PeterNovember 15, 2019 at 12:57 pm #100508Hi, i have include webcomponents-lite.js just now, but still getting the same error.
November 18, 2019 at 6:05 am #100509Hi,
Could you please, share codepen example?
Regards,
Peter - AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.