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 216489 - Attribute 'id' shows an error with forward slash in it
Summary: Attribute 'id' shows an error with forward slash in it
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal with 3 votes (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 232900 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-07 13:18 UTC by redhead
Modified: 2014-07-25 02:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (71.08 KB, text/plain)
2012-08-07 13:18 UTC, redhead
Details

Note You need to log in before you can comment on or make changes to this bug.
Description redhead 2012-08-07 13:18:14 UTC
Using forward slash ('/') in HTML 5 id attribute produces error "Unexpected token SOLIDUS found", ie. in:

<div id="foo/bar"></div>

However, HTML5 restricts id attribute to not contain whitespaces only, any other character is valid, including forward slash.

W3C validator didn't produce any error with such a code.

Product Version = NetBeans IDE 7.2 (Build 201207171143)
Comment 1 redhead 2012-08-07 13:18:22 UTC
Created attachment 122831 [details]
IDE log
Comment 2 Marek Fukala 2012-09-19 14:32:52 UTC
Reproducible. HTML5 spec removed the limits of the id attribute value as it was defined in HTML4.01.
Comment 3 Marek Fukala 2013-07-17 13:52:54 UTC
*** Bug 232900 has been marked as a duplicate of this bug. ***
Comment 4 Marek Fukala 2013-07-17 13:54:18 UTC
issue 232900 reports the same problem for dollar sign character.
Comment 5 mta59066 2014-03-14 22:02:56 UTC
Looks like this missed the target milestone of 7.4. Any chance it might make it to 8.0?
Comment 6 Marek Fukala 2014-07-23 10:25:18 UTC
changeset:   276002:1685f0573b59
summary:     #216489 - Attribute 'id' shows an error with forward slash in it
Comment 7 Quality Engineering 2014-07-25 02:35:56 UTC
Integrated into 'main-silver', will be available in build *201407250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1685f0573b59
User: Marek Fukala <mfukala@netbeans.org>
Log: #216489 - Attribute 'id' shows an error with forward slash in it