You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Pete Whelpton (JIRA)" <ji...@apache.org> on 2019/05/10 15:18:00 UTC

[jira] [Created] (NETBEANS-2532) Update CSS help

Pete Whelpton created NETBEANS-2532:
---------------------------------------

             Summary: Update CSS help
                 Key: NETBEANS-2532
                 URL: https://issues.apache.org/jira/browse/NETBEANS-2532
             Project: NetBeans
          Issue Type: Improvement
          Components: web - CSS Editor
    Affects Versions: 11.0
            Reporter: Pete Whelpton


CSS help (as displayed in Code Completion help window) is derived from two .zip files:

 

css21-spec.zip

css3-spec.zip

 

which are downloaded from OSUOSL at build time.  The .zips contain the html pages of the official CSS specs from the W3C website.  

 

Also, NB decides which zip to check by parsing the module URL in DefaultCssEditorModule.java.  If the URL contains css3, then the css3-spec.zip folder is search for the appropriate HTML page, otherwise the css21-spec.zip is search.

 

There are three problems:

 

1) Both of these .zip files contain really old versions of the specs!

2) W3C no longer put css3 in the URL of module web pages.  E.g. [https://www.w3c.ord/TR/css3-values] is now [https://www.w3c.org/TR/css-values-3/]

3) This logic doesn't take into account new modules that have started back at Level 1 again, or new versions of existing modules that are now on Level 4

 

My proposal would be to create one .zip file of the latest versions of the specs, update DefaultCssEditorModule.java with the current URLs for the specs on the w3c site, and then have just one help resolver that parsed that one .zip file.

 

I'd be happy to do a lot of this work - although I don't have access to upload binaries to OSUOSL, so if somebody who does gets in touch we can get cracking....



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists