Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Don't assume script tags are always JS #88

Description

@alexchandel

Yes, it's horrible, but there are things (like Honeywell's Experion HMI WebBuilder) that produce and interpret HTML with <script language=VBScript>, and non-JS script tags cause this package to utterly fail to parse the rest of the file. Here's a truncated sample of what that would look like (note ellipses):

...
<META name=GENERATOR content="MSHTML 8.00.7601.18715"><LINK id=HDXStylesheet 
rel=stylesheet type=text/css href="..\foocss\sp.css">
<SCRIPT language=VBScript for="" type="" defer event="">'--------------------------------------
'Scada RegCntl - Mode; Hialm Type; EUDesc; 
'--------------------------------------
sub Scd_RegCntl_Mode_Hialm_EUDesc_OnUpdate(oSource,iLen)
    dim sMode,sNMode,iHialmT, iAlmEnbState,oShape,oAlm
    ...
end sub</SCRIPT>

<BODY 
style="BACKGROUND-COLOR: transparent; MARGIN: 0px; ZOOM: 1; FONT-SIZE: 12pt; OVERFLOW: auto">
...

Even GitHub's markdown preview hates this, but supporting it would make Atom applicable to other industries and to engineers who have to slog through such code-salads.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions