Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

name() and local-name() in Firefox 3.6

1 view
Skip to first unread message

Zorkzero

unread,
Nov 4, 2009, 6:17:48 PM11/4/09
to
Hello,
it seems to me, that a breaking change was made to the name() and
local-name() XPath functions in Firefox 3.6. Now they return their
result in lower case instead of upper case. Is that right?

If so, then perhaps you should mention it on the "Firefox 3.6 for
developers" page. I only found out when testing my add-on with Firefox
3.6. I will have to detect the browser version and use a different
XPath expression depending on the version, I think.

Sheppy

unread,
Nov 4, 2009, 9:39:44 PM11/4/09
to

This is already covered:

https://developer.mozilla.org/en/Updating_extensions_for_Firefox_3.6

The change was done to comply with HTML 5.

Eric Shepherd
Developer Documentation Lead
Mozilla Corporation

fcp

unread,
Nov 6, 2009, 11:05:46 AM11/6/09
to
Hi,

On Nov 4, 9:39 pm, Sheppy wrote:
> This is already covered:
>
> https://developer.mozilla.org/en/Updating_extensions_for_Firefox_3.6

It is not sufficiently covered IMHO. Zorkzero is talking about the
name() and the local-name() functions in XPath. The MDC page only
mentions the localName property in DOM Level 2.

Considering that the tagName property in DOM Level 1 continues to
return in the upper case, it was surprising to me that name() in XPath
returns in the lower case, though it is what the HTML5 draft standard
says. I doubt that what the draft standard says here is desirable.

Best regards,
fcp

fcp

unread,
Nov 6, 2009, 5:02:23 PM11/6/09
to
Hi Zorkzero and Sheppy,

I realized that MDC is a wiki and that I already had an account, so I
decided to be bold and added this point to the page. Feel free to
modify it.

Best regards,
fcp

0 new messages