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 246568 - Support for templates editing
Summary: Support for templates editing
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 8.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Milutin Kristofic
Depends on:
Reported: 2014-08-20 07:49 UTC by Vladimir Riha
Modified: 2014-10-06 13:25 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-08-20 07:49:24 UTC
Please have a look at [1], simple tutorial for Shadow DOM. It would be nice if HTML editor would offer code completion inside <template> element, just like in "normal" HTML file - that includes HTML completion, CSS in <style> element and possibly JS inside <script> 

Sample Shadow DOM:
<template id="nameTagTemplate">
.outer {
  border: 2px solid pink;
  border-radius: 1em;
  background: url(sakura.jpg);
  font-size: 20pt;
  width: 12em;
  height: 7em;
  text-align: center;
  font-family: sans-serif;
  font-weight: bold;
.name {
  font-size: 45pt;
  font-weight: normal;
  margin-top: 0.8em;
  padding-top: 0.2em;
<div class="outer">
  <div class="name">