Link element's HREF is not supported in XHTML

VERIFIED FIXED in mozilla0.9.1

Status

()

Core
XML
P3
normal
VERIFIED FIXED
17 years ago
17 years ago

People

(Reporter: Chris Petersen, Assigned: Heikki Toivonen (remove -bugzilla when emailing directly))

Tracking

({xhtml})

Trunk
mozilla0.9.1
xhtml
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [fixinhand, see bug 67887], URL)

Attachments

(2 attachments)

(Reporter)

Description

17 years ago
Build: 2001020804
Platform: All
Expected result: HREF attribute should work in the Link element. This is a away
a user would specify a external css file.
What I got: The css which is referenced by the HREF attribute is not applied.

Steps to reproduce:

1) Save the xml test case and css file to local drive.

2) Open xml test file.

3) The H3 and P element are rendered with assigned css properties/values.
(Reporter)

Comment 1

17 years ago
Added xhtml keyword
Keywords: xhtml
Hardware: Macintosh → All
Summary: Link element's HREF is not supported in XHTML → Link element's HREF is not supported in XHTML
(Reporter)

Comment 2

17 years ago
Created attachment 24774 [details]
H3 and P elements in XHTML
(Reporter)

Comment 3

17 years ago
Created attachment 24775 [details]
a external css file
Duplicates bug 36790.
(Reporter)

Comment 5

17 years ago
The only difference I see is that the STYLE element is present in 36790. This 
report talks about the external css not being applied.
(Reporter)

Comment 6

17 years ago
Nominating for beta 1. External stylesheets must be supported in XHTML.
Keywords: nsbeta1
You can use external stylesheets with the xml-stylesheet processing instruction,
see http://www.w3.org/TR/xml-stylesheet/

Updated

17 years ago
Keywords: mozilla1.0

Comment 8

17 years ago
Have you resolved how style sheets from LINK and <?xml-stylesheet ...?> 
PI's should be combined?

I don't believe this behavior is defined in any specifications,
although I would _expect_ that they would be combined simply
according to the order in which they appear in the document --
PI's first, followed by the LINKs, otherwise weighted equally.

Does that make sense to everyone?
Ian: Sounds reasonable. The stylesheet PI's are only allowed in the document
prolog, so they will always precede the link elements. Otherwise it shouldn't
matter if you use PIs or link elements or both.
Ian: FYI, there are at least 6 non-dynamic ways of linking stylesheets:

   Link: HTTP headers
   <?xml-stylesheet?> PIs
   <meta http-equiv="Link"> elements
   <link rel="stylesheet"> elements
   <style> @import "" </style> blocks
   <style src=""> elements (non-standard)

Fun, huh. They can all appear in the same document, too. And all of them can
be alternate stylesheets, for extra fun...

Comment 11

17 years ago
Probably common usage.  Will schedule fix.
Keywords: nsbeta1 → nsbeta1+
Priority: -- → P3
Target Milestone: --- → mozilla0.9.1
For fix, see bug 67887.
Status: NEW → ASSIGNED
Whiteboard: [fixinhand, see bug 67887]
Nisheeth says r=nisheeth
Fix checked in.
Really.
Status: ASSIGNED → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → FIXED
(Reporter)

Comment 16

17 years ago
Marking verified in the May 03 build (2001050308).
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.