Closed Bug 227307 Opened 21 years ago Closed 21 years ago

'about' and 'resource' attrs need namespace prefix

Categories

(Core Graveyard :: RDF, defect)

x86
All
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bob, Assigned: tingley)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 Firebird/0.7 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 Firebird/0.7 The use of these attributes without namespace prefixes is deprecated, so they need the prefix that goes with the http://www.w3.org/1999/02/22-rdf-syntax-ns# URL. In general, when arp (http://www-uk.hpl.hp.com/people/jjc/arp/) finds no problems with your RDF, your RDF is ready for consumption. (Instead of downloading and installing arp, you can just paste your RDF into the W3C's front end to it at http://www.w3.org/RDF/Validator/). Reproducible: Always Steps to Reproduce: 1. I used Mozwho's new feature to save bookmark RDF to disk 2. validate RDF using arp (see Details) Actual Results: lots of warning messages Expected Results: Added RDF namespace prefix to 'about' and 'resource' attributes in RDF.
Summary: 'about' and 'resource' attrs need namespace prefix; take PCDATA out of → 'about' and 'resource' attrs need namespace prefix
Since Mozilla isn't capable of exporting the bookmarks in an RDF file (see bug 177886), isn't this a bug in mozwho ?
MozWho just invokes Components.interfaces.nsIRDFXMLSerializer, so certainly one fix for the issue is to manually generate an RDF from a more manual js process. However, my guess is that the *issue* is either with the representation of the bookmarks internally or the serializer. The point is a long term one, looking to the future of RDF as a common storage format, and inter-operability among applications. Confirming, adjusting OS and severity -- but it wouldn't be the first time I've screwed up in b.m.o.
Severity: normal → minor
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
Blocks: 11650
Andy is correct, this is a serializer issue. In the early days of the RDF spec, the namespace was optional for certain attributes (about/resource/ID), but this is no longer the case.
Attached patch fixSplinter Review
This puts everything into the RDF namespace, and also cleans up a few duplicate string constants that were scattered throughout the file.
Attachment #139008 - Flags: review?(rjc)
*** Bug 189854 has been marked as a duplicate of this bug. ***
Attachment #139008 - Flags: review?(rjc) → review+
Attachment #139008 - Flags: superreview?(bz-vacation)
Comment on attachment 139008 [details] [diff] [review] fix sr=bzbarsky
Attachment #139008 - Flags: superreview?(bz-vacation) → superreview+
Assignee: rjc → tingley
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
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: