Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-15966

Livereload does not work with HTML files without <html>

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.2.0.Alpha2
    • 4.2.0.Alpha1
    • livereload
    • None

      Liveroload does not update HTML files if it does not have <html> tag which is not required by HTML5 spec in most cases:
      http://www.w3.org/TR/2011/WD-html5-20110525/syntax.html#optional-tags
      "An html element's start tag may be omitted if the first thing inside the html element is not a comment."
      So livereload should handle all optional tags. And maybe log a worning (or rise an warning dialog?) if there is no valid HTML5 content at all and we can't insert JS links.

            xcoulon@redhat.com Xavier Coulon
            alexeykazakov Alexey Kazakov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: