Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2532

Update CSS help

Rank to TopRank to BottomVotersWatch issueWatchersConvert to sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 11.0
    • Fix Version/s: 12.2
    • Component/s: web - CSS Editor
    • Labels:

      Description

      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....

        Attachments

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              matthiasblaesing Matthias Bläsing
              Reporter:
              peedeeboy Pete Whelpton

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment