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 181870 - [69cat] Validate Dojo attributes in HTML
Summary: [69cat] Validate Dojo attributes in HTML
Status: RESOLVED INCOMPLETE
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: PC Linux
: P4 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-11 09:49 UTC by schkovich
Modified: 2011-11-02 13:19 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
warnings about dojo attributes in markup (156.47 KB, image/png)
2010-03-11 09:50 UTC, schkovich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description schkovich 2010-03-11 09:49:33 UTC
[ BUILD # : 201003110200 ]
[ JDK VERSION : 1.6.* ]

Dojo Toolkit provides a way to declare instances of any class via markup in 
page. Those attributes are marked as html errors: Unknown attribute dojoType of
tag <div>. Although this is true, when using Dojo declarations extensively,
real problems are masked in number of warnings about Dojo declarations. 

It would be awesome if Dojo declarations could be validated in HTML and PHP
editor.
Comment 1 schkovich 2010-03-11 09:50:44 UTC
Created attachment 95056 [details]
warnings about dojo attributes in markup
Comment 2 Marek Fukala 2010-03-12 08:18:45 UTC
I'm not a DOJO expert, but shouldn't be the DOJO's attributes marked with some namespace?

Something like

<html xmlns:dj="http://dojo.com/dojo">
<div dj:dojoType> ... </div>

I'm not saying I cannot fix that somehow if there is no other way though...
Comment 3 schkovich 2010-03-12 10:54:26 UTC
I've spoked with Dojo guys on IRC. They are quite categoric about xml: not all html documents support xml namespaces, so dojo doesn't use them.

However we discussed option to generate the list of attributes. Will such list be helpful?
Comment 4 Marek Fukala 2010-03-12 12:16:20 UTC
Definitively, once I have it, I'll create some kind of "default html namespace" extension infrastructure and possibly user configurable UI and create an implemenetation for the DOJO. 

Please also ask the DOJO guy if there some non standart tags recognized by the DOJO engine.

Thanks in advance.
Comment 5 schkovich 2010-03-12 16:36:09 UTC
Great. In which format you would like the list to be given? json, xml, csv? 

Any ideas about a way to update such list?
Comment 6 Marek Fukala 2010-03-12 17:09:39 UTC
(In reply to comment #5)
> 
> Any ideas about a way to update such list?
I depends on the data complexity and also how you mean that. Whether you think updating of the list in some form in the netbeans source when it changes on the DOJO side or you ment modifying the list by users. I was thinking about some relatively simple UI in html editor options. If it is just a list of tags and for each tag a list of attributes it shouldn't be that hard.

> Great. In which format you would like the list to be given? json, xml, csv? 
Again - depends on data complexity. I'm find with any of these.
Comment 7 riksoft 2011-10-25 08:05:47 UTC
http://forums.netbeans.org/topic43936.html
Comment 8 schkovich 2011-11-02 13:19:50 UTC
At the moment I see no way how to resolve this problem.