v158 · html · a / area / form

Declarative windowfeatures

A click handler calling window.open() throws away middle-click, the context menu and every other native link behaviour. So the proposal adds a windowfeatures content attribute to <a>, <area> and <form>, reflected as windowFeatures. Presentation comes from windowfeatures; the opener relationship still comes from rel.

Checking this browser…

1 · Reflection lab

Per the WPT, the IDL attribute must default to "", mirror the content attribute, and write it back. In an engine without the feature the IDL read is undefined and an IDL write is only a JavaScript expando — the attribute stays absent.

Press a button to run the reflection check on a fresh element.

2 · Real links

These are ordinary markup. Activate them normally (Enter, click, middle-click, context menu). Each opens the report pane, which posts back whether it has an opener and whether it landed in a popup.

which features the attribute accepts

split, splitposition, splitsize, popup, width/height and left/top. noopener/noreferrer are refused (use rel), and the legacy toolbar/menubar/… tokens are ignored — so windowfeatures="toolbar=0,menubar=0" does not trigger the popup heuristic the way the same string does in window.open().

see also