← Back to release summary
Selection API: setBaseAndExtent(), extend(), and collapse() throw InvalidNodeTypeError for DOCTYPE
- Category
- DOM
- Type
- New or changed feature
- Status
- Enabled by default (Chrome 58)
- Intent stage
- None
Summary
These function silently normalized the specified position with DOCTYPE. However, they should throw InvalidNodeTypeError to match to Edge, Firefox, and the specification.
Standards & signals
View on chromestatus.com