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.
If a style-sheet is added dynamically (using JavaScript) and this style-sheet is modified in the IDE then it is not reloaded in the browser. Test case: <!DOCTYPE html> <html> <head> <title></title> <script> var addStyleSheet = function() { //<link rel="stylesheet" href="css/test.css"> var element = document.createElement('link'); element.setAttribute('rel', 'stylesheet'); element.setAttribute('href', 'css/test.css'); document.head.appendChild(element); }; var removeStyleSheet = function() { var element = document.getElementsByTagName('link')[0]; element.parentNode.removeChild(element); } </script> </head> <body> <div>Element affected by css/test.css</div> <button onclick="addStyleSheet();">Add stylesheet</button> <button onclick="removeStyleSheet();">Remove stylesheet</button> </body> </html> Note that this issue is not related to issue 243853. This test-case never worked in the past. CSSUpdater always performed one-time initialization of the map of known style-sheets.
Fixed/implemented by https://hg.netbeans.org/web-main/rev/6709ca858958
Integrated into 'main-silver', will be available in build *201503160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/6709ca858958 User: Jan Stola <jstola@netbeans.org> Log: #244080: CSS reload doesn't work for style-sheets added dynamically