Last modified: 2013-11-05 17:10:57 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T58515, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56515 - Parsoid generated <link> nodes shouldn't be in <body>
Parsoid generated <link> nodes shouldn't be in <body>
Status: RESOLVED DUPLICATE of bug 53508
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-02 16:37 UTC by Kelson [Emmanuel Engelhart]
Modified: 2013-11-05 17:10 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kelson [Emmanuel Engelhart] 2013-11-02 16:37:16 UTC
In this article for example:
http://parsoid.wmflabs.org/enwikivoyage/South_America

You have this node in the the <body>:
<link rel="mw:PageProp/Category" href="./Category:Has_custom_banner" data-parsoid='{"stx":"simple","a":{"href":"./Category:Has_custom_banner"},"sa":{"href":"Category:Has custom banner"}}'/>

This is pretty odd because:
* This is a "metadata" which shouldn't be mixed with rendered data
* <link> nodes should be in the <head>, according the W3C ("The LINK element may only appear in the head of a document."):http://www.w3.org/TR/html401/struct/links.html
Comment 1 Gabriel Wicke 2013-11-05 17:10:26 UTC
* We are using HTML5+RDFa, which allows link in the body [1]. 
* I agree with you that invisible metadata like this should not be in the body. We plan to move it into separate page properties, see bug 53508. Until this move is also done wikitext we'll still have to preserve the position of the metadata within the DOM so that we can round-trip it properly.

[1]: http://www.w3.org/TR/rdfa-in-html/
Comment 2 Gabriel Wicke 2013-11-05 17:10:57 UTC

*** This bug has been marked as a duplicate of bug 53508 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links