[Bug 20913] [Custom]: What does inheriting from existing HTML element really mean?

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20913

--- Comment #39 from Scott Miles <sjmiles@chromium.org> ---
I'm concerned about one thing and I want to get it in the record.

People can automate createDocument, and currently they only need to use a
single string to do so. 

E.g., imagine:

MyLibrary.eltFactory = function(inTag, inAttributes, inContent) {
  var elt = document.createElement(inTag);
  // install attributes and content
  return elt;
};

Any code like that will have to be modified to work with the new extra
parameter.

This is why I was hoping we could come up with some way of cramming both pieces
of information into the first parameter (e.g.
createElement("input/fancy-input")).

Maybe it's nothing to worry about, I'm not claiming this is a stopper.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 22 February 2013 19:18:52 UTC