Skip to content

Commit

Permalink
Add support for ignoring frame related elements
Browse files Browse the repository at this point in the history
Closes GH-45.

Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com>
  • Loading branch information
wooorm committed May 24, 2019
1 parent 2ebc108 commit c0a5ce2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/handlers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ exports.datalist = ignore
exports.dialog = ignore
exports.element = ignore
exports.embed = ignore
exports.frame = ignore
exports.frameset = ignore
exports.input = ignore
exports.isindex = ignore
exports.keygen = ignore
Expand All @@ -56,6 +58,7 @@ exports.menu = ignore
exports.menuitem = ignore
exports.meta = ignore
exports.nextid = ignore
exports.noframes = ignore
exports.object = ignore
exports.optgroup = ignore
exports.option = ignore
Expand Down
18 changes: 18 additions & 0 deletions test/fixtures/frame-frameset-noframes/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<title>HTML Frames</title>
</head>

<frameset rows="10%,80%,10%">
<frame name="top" src="/html/top_frame.htm" />
<frame name="main" src="/html/main_frame.htm" />
<frame name="bottom" src="/html/bottom_frame.htm" />

<noframes>
<body>
Your browser does not support frames.
</body>
</noframes>
</frameset>
</html>
Empty file.

0 comments on commit c0a5ce2

Please sign in to comment.