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

Summary: Support for templates editing
Product: web Reporter: Vladimir Riha <vriha>
Component: HTML EditorAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

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:
<div>
<template id="nameTagTemplate">
<style>
.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;
}
</style>
<div class="outer">
  <div class="name">
    <content></content>
  </div>
</div>
</template>
</div>


[1]