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 - Support "Web Components elements": <template>, <content>, <shadow>
Summary: Support "Web Components elements": <template>, <content>, <shadow>
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-12 12:59 UTC by terje7601
Modified: 2016-02-12 15:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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