Open
Bug 776363
Opened 12 years ago
Updated 1 year ago
-moz-element doesn't work when <base> tag is present
Categories
(Core :: Layout, defect)
Tracking
()
NEW
People
(Reporter: boomyjee, Unassigned)
Details
(Keywords: dev-doc-needed)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11
Steps to reproduce:
Used -moz-element and base tag on the same page.
For example see this fiddle
http://jsfiddle.net/m6njY/1/
Actual results:
Background for body is not shown.
What probably happens inside:
I think you process urls in css prior to base tag, so #test becomes /#test and so -moz-element becomes broken.
Expected results:
Same behaviour as if you remove <base> tag.
Like this - http://jsfiddle.net/vhsu2/
Comment 1•10 years ago
|
||
Hello Alex,
I just found your old bug-report and test the given case with actual firefox.
on my site it looks Ok now, but it would be nice if you can confirm it.
thanks for your help to make firefox better
Stefan
Flags: needinfo?(boomyjee)
seems to be broken in firefox 33
here is working sample without base tag
http://jsfiddle.net/vhsu2/1/
broken (bug) - should look the same as above, but there is no background shown on body, only difference - presense of base tag
http://jsfiddle.net/m6njY/1/
Flags: needinfo?(boomyjee)
Updated•10 years ago
|
Status: UNCONFIRMED → NEW
Component: Untriaged → Layout
Ever confirmed: true
Product: Firefox → Core
Version: 14 Branch → 35 Branch
Comment 3•10 years ago
|
||
-moz-element very purposefully treats the given string as as URI reference, not an id reference. Which means it gets resolved relative to the document's base URI.
Robert, do you recall why it does that? Basically so it can reuse the SVG paint server code?
Flags: needinfo?(roc)
I don't remember. It should just be an id-reference.
Flags: needinfo?(roc)
Updated•10 years ago
|
Keywords: dev-doc-needed
This needs a bug fix, not a dev-doc-needed, unless you think we need to document the bug.
Comment 6•10 years ago
|
||
I was wondering if, when the bug is fixed, we should add a comment in the compat data of the element() page that until Fx XY this wasn't working well if <base> is used on the page.
But you are right the bug fix is what is needed here. Bugs w/ ddn keyword become visible in our dashboards only when the bug is closed ;-) Even if it is in a few years.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•