New issue
Advanced search Search tips

Issue 683876 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jan 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

would be nice to be able to edit inline scripts

Project Member Reported by jochen@chromium.org, Jan 23 2017

Issue description

when developing custom elements, it's a common pattern to put the html template together with the script in a single html file that is then imported via HTML imports.

However, this effectively means that live editing is not possible in this workflow, as scripts in HTML files cannot be edited.

It would be nice if this was still possible.
 
Status: WontFix (was: Untriaged)
>>  it's a common pattern to put the html template together with the script in a single html file

Editing HTML is challenging because it introduces the DOM vs HTML confusion. Am I editing HTML or DOM? If my changes to the scripts apply, why don't my changes to other tags do?

There are ways to resolve it like "unpinning" the script from HTML and extracting it into the "VM script" that user can edit, but that all results in confusing UX. In order to resolve this with the decent UX, Polymer and other frameworks need to become a bit more tooling-friendly and use the artifact-per-language patterns.

Sign in to add a comment