XML parsing error on valid xhtml page

Bug #224853 reported by Vidar Skjelanger
6
Affects Status Importance Assigned to Milestone
firefox-3.0 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: firefox-3.0

http://bridge.no/1427/modalsmesterskap08.xhtml

Firefox version 3.0b5 on Ubuntu 8.04 gives the following error, pointing to the opening <style> tag.

http://validator.w3.org/ reports no errors on the document.

XML Parsing Error:
Location: http://bridge.no/1427/modalsmesterskap08.xhtml
Line Number 2, Column 403:<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><title /><meta name="generator" content="StarOffice/OpenOffice.org XSLT (http://xml.openoffice.org/sx2ml)" /><meta name="created" content="2006-11-20T22:20:26" /><meta name="changedby" content="Vidar Skjelanger" /><meta name="changed" content="2008-04-28T22:18:56" /><base href="." /><style type="text/css">
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^

ProblemType: Bug
Architecture: i386
Date: Wed Apr 30 20:12:40 2008
DistroRelease: Ubuntu 8.04
NonfreeKernelModules: nvidia
Package: firefox-3.0 3.0~b5+nobinonly-0ubuntu3
PackageArchitecture: i386
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: firefox-3.0
Uname: Linux 2.6.24-16-generic i686

Tags: apport-bug
Revision history for this message
Vidar Skjelanger (vidar-skjelanger) wrote :
Revision history for this message
wouter bolsterlee (wbolster) wrote :

I'm seeing the same in Epiphany linked against xulrunner 1.9.

According to http://www.ietf.org/rfc/rfc2396.txt Appendix D, the href attribute "must be an absolute URI", but also states that "This appendix does not form a part of the URI specification and should not be considered as anything more than a descriptive example."

The error message is really weird though, and in any case this is a (serious) regression since it breaks perfectly valid websites.

Revision history for this message
wouter bolsterlee (wbolster) wrote :

The HTML 4 recommendation which is more authorative on this matter than RFC 2396, states that the href attribute "specifies an absolute URI that acts as the base URI for resolving relative URIs".

See http://www.w3.org/TR/html4/struct/links.html#h-12.4 for more details.

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

We were wondering if this is still an issue for you. Can you try with the latest firefox version? Thanks in advance.

Changed in firefox-3.0:
status: New → Incomplete
Revision history for this message
Vidar Skjelanger (vidar-skjelanger) wrote :

First thing I see is that they have changed the URL (and left a zillion broken links in their trail... fantastic!)

The new URL is now: http://1427.bridge.no/modalsmesterskap08.xhtml

I don't have a Linux computer available at the momemt, but I've tried with firefox 3.0.5 on Windows Vista and that works fine.

Revision history for this message
wouter bolsterlee (wbolster) wrote :

I can no longer reproduce this problem with my test cases that previously triggered this bug. Both absolute and relative urls in <base href="..." /> result in a rendered page, i.e. no parsing errors anymore.

For completeness, the issue was not the <style> tag, but a non-absolute url value in the href attribute on the <base> tag, which is officially not allowed, but yet is sometimes used and hence should just do The Right Thing.

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

Thank you, Vidar and Wouter, for your quick reply. Thus I am closing this bug.

Changed in firefox-3.0:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.