This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 19095 - As written, it seems that the lang IDL attribute just reflects the @lang attribute of the element, and not the "language of the node". If so, this is not very useful. If not, the spec could be clarified.
Summary: As written, it seems that the lang IDL attribute just reflects the @lang attr...
Status: RESOLVED WONTFIX
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-27 18:04 UTC by contributor
Modified: 2013-02-13 00:06 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2012-09-27 18:04:46 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#the-lang-and-xml:lang-attributes
Complete: http://www.whatwg.org/c#the-lang-and-xml:lang-attributes

Comment:
As written, it seems that the lang IDL attribute just reflects the @lang
attribute of the element, and not the "language of the node". If so, this is
not very useful. If not, the spec could be clarified.

Posted from: 38.127.199.123
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/536.26.14 (KHTML, like Gecko) Version/6.0.1 Safari/536.26.14
Comment 1 Anne 2012-12-14 22:32:35 UTC
The more useful variant might be added to the DOM: bug 16489. Although if lang can be repurposed that might be better.
Comment 2 Ian 'Hixie' Hickson 2013-02-09 22:09:52 UTC
What do browsers do?
Comment 3 Anne 2013-02-10 10:20:28 UTC
<!DOCTYPE html><html lang=no>.<script>w(document.body.lang == "")</script>

Yields true in Chrome / Firefox / Opera. Pretty sure implementations agree with the specification.
Comment 4 Ian 'Hixie' Hickson 2013-02-13 00:06:51 UTC
Yeah. Gonna leave this as is then.