This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 213613 - HTML anchors with & not properly underlined
Summary: HTML anchors with & not properly underlined
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.1.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-05 15:32 UTC by rasamassen
Modified: 2013-01-05 02:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rasamassen 2012-06-05 15:32:22 UTC
If an "&" is included in the href of an HTML anchor, the underlining of the href link is stopped at the "p" in the "&" instead of continuing to the end of the link.


According to W3C Validator:
Line 82, Column 84: & did not start a character reference. (& probably should have been escaped as &.)
<a href="http://wc.rootsweb.ancestry.com/cgi-bin/igm.cgi?op=GET&amp;db=merleen_gholdsto&amp;id=I19">Smith fa…

Amps in anchor links, for validity purposes, should be escaped. HTML5 is more lenient, but still requires escaped amps in certain cases (see http://www.w3.org/TR/html5/introduction.html#syntax-errors under "Errors involving fragile syntax constructs")


Example (in a PHP file):
<a href="http://wc.rootsweb.ancestry.com/cgi-bin/igm.cgi?op=GET&amp;db=merleen_gholdsto&amp;id=I19">Smith family tree</a>

All that is underlined in the example is "http://wc.rootsweb.ancestry.com/cgi-bin/igm.cgi?op=GET&amp"
Comment 1 Svata Dedic 2013-01-04 13:01:59 UTC
Changeset: 78e4c25333fd
Author:    Svata Dedic <sdedic@netbeans.org>
Date:      2013-01-04 14:01
Message:   semicolon may be a valid URL char if in XML attribute
Comment 2 Quality Engineering 2013-01-05 02:32:53 UTC
Integrated into 'main-golden', will be available in build *201301050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/78e4c25333fd
User: Svata Dedic <sdedic@netbeans.org>
Log: Issue #213613 - HTML anchors with &amp; not properly underlined: fixed
semicolon may be a valid URL char if in XML attribute