Last modified: 2014-05-30 19:38:21 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 T58306, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56306 - Parsoid ignores unclosed <ref>, whereas Cite extension truncates the page
Parsoid ignores unclosed <ref>, whereas Cite extension truncates the page
Status: NEW
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Gabriel Wicke
https://www.mediawiki.org/wiki/User:M...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-29 10:19 UTC by Minh Nguyễn
Modified: 2014-05-30 19:38 UTC (History)
3 users (show)

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


Attachments

Description Minh Nguyễn 2013-10-29 10:19:22 UTC
An unclosed <ref> tag on the page eats up the rest of the page, typically including the requisite <reference> tag at the bottom of the page. However, VisualEditor handles the unclosed <ref> tag more gracefully, treating it as plain text.

At the URL above, the wikitext:

    Before <ref> during
    after
    <references />

is rendered:

    Before[1]
    Cite error: <ref> tag found without <references/>

whereas VisualEditor shows:

    Before <ref> during↵after
    There are no references on this page to include on this list.

This issue was brought to my attention by an editor who somehow created the unclosed <ref> tag in VisualEditor. (See the initial revision of [[vi:Danh sách các chi tiết gợi nhớ đến Disney trong phim Enchanted]].) I’ve reached out to the editor for information on how they might’ve gotten into that state.
Comment 1 Minh Nguyễn 2013-10-29 10:30:40 UTC
Never mind about that last part. It looks like they introduced the unclosed <ref> tag by hand, not using VisualEditor.
Comment 2 Gabriel Wicke 2014-05-30 14:56:23 UTC
So is this a request for matching the more graceful behavior in the PHP Cite implementation, or is it a request for Parsoid to truncate the page as well?
Comment 3 Minh Nguyễn 2014-05-30 19:38:21 UTC
I'm not sure; that depends what the more graceful behavior would be, but I would expect Parsoid to match Cite in any case. Does Parsoid's current behavior seem like a more reasonable way for Cite to handle unclosed <ref> tags?

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


Navigation
Links