Closed Bug 297765 Opened 20 years ago Closed 11 years ago

XForms doesn't handle xml:base properly

Categories

(Core Graveyard :: XForms, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: smaug, Assigned: smaug)

References

()

Details

Attachments

(1 file)

1.06 KB, application/xhtml+xml
Details
we don't handle baseURIs/xml:base properly atm.
For example in
http://lxr.mozilla.org/seamonkey/source/extensions/xforms/nsXFormsInstanceElement.cpp#387
we should check the baseURI of the <instance> element, I think.
Summary: XForms doesn't handle xlm:base properly → XForms doesn't handle xml:base properly
I think authors also expect xhtml:base/@href to work as it's part of the host language (XHTML).  I see it doesn't apply to xf:submission/@action.  That may be a separate bug.


all URI references should use the xml:base, right? so <label src="..."/>, help, load, etc. also.
OS: Windows 2000 → All
Hardware: PC → All
Attached file Testcase
So if I've gotten xml:base right, the label, help, and hint should load their content from beaufour.dk. Bug 329106 needs to be fixed first though.
WORKAROUND: Messy in the extreme (because Internal Subsets scare me a bit), but needs must ...

In the <!DOCTYPE declaration, add an Internal Subset:
(I simply copied from the w3.org HTML4.01 spec)
<!DOCTYPE html .......... (don't close the bracket yet)
[
<!ELEMENT BASE - O EMPTY               -- document base URI -->
<!ATTLIST BASE
  href        %URI;          #REQUIRED -- URI that acts as base URI -->
<!-- I left it UPPER CASE to make it stand out -->
]>

Then --
<html><head>
<BASE href="file:///usr/local/doc" /><!-- Obviously, my file, use your own -->

And it works.  It even validates as SGML.
Depends on: 903372
The XForms Addon is not developed any more.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: