resolving relative urls in style attribute depends on relative order of xml:base and style attrs

RESOLVED WONTFIX

Status

()

RESOLVED WONTFIX
7 years ago
2 months ago

People

(Reporter: fantasai.bugs, Assigned: jkt)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

1.47 KB, application/xhtml+xml
Details
(Reporter)

Description

7 years ago
Created attachment 642087 [details]
testcase

If I understand correctly, these two should be processed the same way:
  <p style="background-image: url(swatch-lime.png)" xml:base="../">
  <p xml:base="../" style="background-image: url(swatch-lime.png)">

However only the second one works in Gecko.
Basically, we don't handle dynamic changes to xml:base in any sort of useful way.... and we parse the style attribute eagerly.  We could "fix" the latter, but the former would remain.  And similar for <base>, of course.

Imho we should simply drop xml:base support, btw.
(Reporter)

Comment 2

7 years ago
If we want to do that, we probably want to get it dropped from the HTML5 spec, too. (Fwiw, both us and Opera support xml:base, just not on style attributes. I haven't checked IE.)

Updated

6 years ago
Depends on: 903372
(Assignee)

Comment 4

2 months ago
Marking WONTFIX as Bug 903372 removed support for xml:base. Even if it is reopened, I don't think we intent to continue support for this feature.
Status: NEW → RESOLVED
Last Resolved: 2 months ago
Resolution: --- → WONTFIX
(Assignee)

Updated

2 months ago
Assignee: nobody → jkt
You need to log in before you can comment on or make changes to this bug.