Closed Bug 702123 Opened 14 years ago Closed 14 years ago

CSS moz-hyphens / different rules

Categories

(Core :: CSS Parsing and Computation, defect)

8 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: frfxtst, Unassigned)

Details

Attachments

(2 files)

Attached file hyphenation_lang.html —
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0 Build ID: 20111104165243 Steps to reproduce: I used moz-hyphens in a html and in a xhtml file and set the language attribute to "en". Actual results: It seems to be that different rules are applied, as the result looks different. Expected results: In both cases the same hyphenation rules should be applied.
Attached file hypenation lang xhtml —
Attachment #574158 - Attachment mime type: application/octet-stream → text/plain
Component: General → Style System (CSS)
Product: Firefox → Core
Attachment #574158 - Attachment mime type: text/plain → text/xml
Attachment #574157 - Attachment mime type: text/plain → text/html
If you serve your "XHTML" document as HTML it's treated as HTML. xml:lang="en" is ignored in HTML parsing. So I think this bug is invalid.
(In reply to j.j. from comment #3) > If you serve your "XHTML" document as HTML it's treated as HTML. > xml:lang="en" > is ignored in HTML parsing. So I think this bug is invalid. What do you mean by "If you serve your "XHTML" document as HTML"?
(In reply to testit from comment #4) > (In reply to j.j. from comment #3) > > If you serve your "XHTML" document as HTML it's treated as HTML. > > xml:lang="en" > > is ignored in HTML parsing. So I think this bug is invalid. > > What do you mean by "If you serve your "XHTML" document as HTML"? serve it as text/html (rather than application/xhtml+xml)
In text/html, xml:lang is not honored; when lang is used the behavior is the same. So I agree this is invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
(In reply to testit from comment #4) > What do you mean by "If you serve your "XHTML" document as HTML"? Quoting http://www.webkit.org/blog/68/understanding-html-xml-and-xhtml/ : In particular, none of the following things will cause your document to be treated as XHTML: - Using an XHTML doctype declaration - Putting an XML declaration at the top - Using XHTML-specific syntax like self-closing tags - Validating it as XHTML See also http://hixie.ch/advocacy/xhtml
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: