logo       

[ tidy-Bugs-1264455 ] Multiple URLs in profile incorrectly modified: msg#00076

web.html-tidy.tracker

Subject: [ tidy-Bugs-1264455 ] Multiple URLs in profile incorrectly modified

Bugs item #1264455, was opened at 2005-08-20 01:08
Message generated for change (Settings changed) made by krusch
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1264455&group_id=27659

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: HTML/XML/XHTML Parser
Group: Current - all platforms
>Status: Open
Resolution: Wont Fix
Priority: 5
Submitted By: Klaus Johannes Rusch (krusch)
Assigned to: Björn Höhrmann (hoehrmann)
Summary: Multiple URLs in profile incorrectly modified

Initial Comment:
Multiple URLs in the profile attribute of a head
element are incorrectly converted into a single URL
with escaped whitespace, for example

<head profile="http://gmpg.org/xfn/11
http://dublincore.org/documents/dcq-html/";>

becomes

<head
profile="http://gmpg.org/xfn/11%20http://dublincore.org/documents/dcq-html/";>

and a warning is issued:
line 2 column 1 - Warning: <head> escaping malformed
URI reference

HTML 4.01 reference:
http://www.w3.org/TR/REC-html40/struct/global.html#h-7.4.1

profile = uri [CT]
This attribute specifies the location of one or
more meta data profiles, separated by white space. For
future extensions, user agents should consider the
value to be a list even though this specification only
considers the first URI to be significant.



----------------------------------------------------------------------

>Comment By: Klaus Johannes Rusch (krusch)
Date: 2005-08-20 16:06

Message:
Logged In: YES
user_id=365576


The description does indicate though that while only one URI
is currently considered significant more than one can be
provided.

Stripping additional URLs might be reasonable since that is
what browsers are supposed to do as well, and what the DTD
and later specifications support as well, converting "url1
url2" to "url1%20url2" is not since the result is a URL that
is formally correct but no longer valid.

With the restriction to one and the lack of a namespace-like
mapping of eta elements to profile definition the profile
attribute looks pretty useless anyway but at least tidy
should not break the profile definition.


----------------------------------------------------------------------

Comment By: Björn Höhrmann (hoehrmann)
Date: 2005-08-20 01:15

Message:
Logged In: YES
user_id=188003

It says "profile = uri" and that's what's been implemented
in Tidy ever since. This is a known problem with the HTML
and XHTML specifications. I'm happy to change Tidy's
behavior once the W3C clarifies this issue. I think it's
pretty clear that in HTML 4.01 and document types that
build on it only a single URI is allowed and the above just
describes error handling behavior. This is quite evident
from even recent specifications like the M12N in XML Schema
where the anyURI type is used here instead of list types.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1264455&group_id=27659


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise