- From: <bugzilla@jessica.w3.org>
- Date: Sun, 29 Dec 2013 23:57:40 +0000
- To: public-webapps@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24178
Bug ID: 24178
Summary: [Custom]: No way to differentiate attribute namespaces
in attributeChanged callback
Product: WebAppsWG
Version: unspecified
Hardware: PC
URL: http://www.w3.org/TR/custom-elements/#types-of-callbac
ks
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Component Model
Assignee: dominicc@chromium.org
Reporter: pdr@google.com
QA Contact: public-webapps-bugzilla@w3.org
CC: dglazkov@chromium.org, mike@w3.org,
public-webapps@w3.org
Blocks: 14968
Some valid html attributes have namespaces:
http://www.w3.org/html/wg/drafts/html/master/single-page.html#attributes-0
Because the attributeChanged callback does not specify the attribute's
namespace, it's not possible to differentiate the following:
xuse.setAttributeNS('http://www.w3.org/1999/xlink', 'href', 'foo')
or
xuse.setAttribute('xlink:href', 'foo')
and
xuse.setAttribute('href', 'foo')
One way to fix this may be to just add an optional 4th argument to the
attributeChanged callback for the namespace if it is not html.
--
You are receiving this mail because:
You are on the CC list for the bug.
Received on Sunday, 29 December 2013 23:57:46 UTC