Closed Bug 34183 Opened 24 years ago Closed 24 years ago

The name attribute on the binding element should be renamed to id

Categories

(Core :: XBL, defect, P3)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: sjoerd, Assigned: hyatt)

Details

(Whiteboard: 1/2 day, 4/21)

Dave, you said you wanted to fix this.
Are you still going to?
Show me a precedent for the ID being used as a # in an URL.
http://www.w3.org/TR/xhtml11/changes.html#a_changes

in XHTML 1.1 <a name=""> is no longer supported.
Are they switching to using ID as a reference using # then?
http://www.w3.org/TR/html401/struct/links.html#h-12.2.3
(Collision will make your question disappear)
html 4 already supports # to an ID

http://www.w3.org/TR/xpath#function-id
XML XPath does no longer support the # notation, and instead had the id() 
function.

http://www.w3.org/TR/xpath#unique-id
It points to a unique-id.

http://www.w3.org/TR/REC-xml#one-id-per-el
We can't have both name and id.

<bindings> now has 'id' and <binding> has 'name'. This is inconsistent (valid 
though)

Does XUL have a DTD somewhere, where 'name' is defined as an ID-type attribute?

I'm sorry. It will give you some extra work, but I think it's important.

Hey, your question is not removed.
A bug in bugzilla...
(it should not report a collision)
"In order to ensure that XHTML 1.0 documents are well-structured XML documents, 
XHTML 1.0 documents MUST use the id attribute when defining fragment 
identifiers, even on elements that historically have also had a name attribute."

I was wrong on xpath not supporting #.
It starts with # by default. ;-)

A bare name like #scrollbar is equivalent to #xpointer(id("scrollbar"))
Got it.  Definitely seems like id is what we should be using.  Accepting for 
M15.
Status: NEW → ASSIGNED
Target Milestone: --- → M15
Mass-moving most M15 bugs to M16
Target Milestone: M15 → M16
Whiteboard: 1/2 day, 4/21
done.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.