=== instead of ==
" instead of '

The only issue I have is with null. If focus isn't set to either button, than a keyboard user will have to tab through the entire page to reach the button of the DOM and enter the dialog element before being able to click a button. (or resort to using the mouse)

Could add another empty `<a>` in the dialog and assign focus to it? Seems a bit hacky...