This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 254305

Summary: Support "Web Components elements": <template>, <content>, <shadow>
Product: web Reporter: terje7601
Component: HTML EditorAssignee: Milutin Kristofic <mkristofic>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description terje7601 2015-08-12 12:59:13 UTC
Please add support for these elements (cf. https://developer.mozilla.org/en-US/docs/Web/Web_Components ). Currently they result in errors like:

Element "template" not allowed as child of element "body" in this context. (Suppressing further errors from this subtree.)
From line 15, column 2; to line 15, column 31
(Rule Category: Elements structure)


Product Version: NetBeans IDE Dev (Build 201508030002)
Updates: Updates available
Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Milutin Kristofic 2015-08-24 12:24:40 UTC
This needs update for validator lib that Netbeans is using. Which is planned for Netbeans version after 8.1

I will add <template> to completion since it is new html5 tag, The rest are not in HTML5 standard. https://html.spec.whatwg.org/multipage/
Comment 2 Milutin Kristofic 2016-02-12 15:20:51 UTC
Added template to completion and with updating validator there is no error for template in Netbeans. Shadow and content are not supported as template in html 5 specs.

http://hg.netbeans.org/web-main/rev/26573d86f877