Element attributes be removed silently in frameset tag
See original GitHub issueDo you want to request a feature or report a bug? bug
What is the current behavior?
In some historical reason, i am still using obsolete tag frameset in my project. And when i render my component which includes frameset tag in react, some attributes are ignored, like rows, cols.
Could anyone tell me why and how to solve it by no hacking way? Thx.
input
export default class obsoleteElment extends React.Component {
render() {
return (
<html>
<head>
<meta httpEquiv="content-type" content="text/html; charset=UTF-8" />
<title>old page</title>
</head>
<frameset id="frame-container" rows='60,*' frameBorder="0" border="0" cols="180,11,*">
</frameset>
</html>
)
}
}
output
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>old page</title>
</head>
<frameset id="frame-container" frameBorder="0" border="0">
</frameset>
</html>
expect
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>old page</title>
</head>
<frameset id="frame-container" rows='60,*' frameBorder="0" border="0" cols="180,11,*">
</frameset>
</html>
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
react version

node environment

OS

Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Frames in HTML documents - W3C
The FRAMESET element specifies the layout of the main user window in terms of rectangular subspaces. Rows and columns. Setting the rows attribute...
Read more >Why Do Some HTML Elements Become Deprecated?
Another common scenario is when technical elements get deprecated as a prelude to their future removal (which we sometimes call “sunsetting” ...
Read more ><frameset> - HTML: HyperText Markup Language | MDN
This attribute specifies the number and size of vertical spaces in a frameset. Example. <frameset cols="50 ...
Read more >HTML Standard
Continuing the above example, a requirement stating that a particular attribute's value is constrained to being a valid integer emphatically does not imply ......
Read more >File: REFERENCE — Haml Documentation
Any string is a valid element name; Haml will automatically generate opening and closing tags for any element. Attributes: {} or (). Brackets...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I dig a little in to this. Currently many other obsolete tags are supported correctly. Also according to documentation all attributes should be supported:
I’m gonna prepare PR later today which should fix that issue.
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!