It doesn't even make sense. The sentence containing the quotation only ends when the quotation itself ends, not before. `print("abc)"`
British English puts commas and periods (full stops) outside the quotation marks unless the quotation is also a complete sentence or the punctuation is part of the quotation.
Source: https://www.unr.edu/writing-speaking-center/student-resource...
Much like <b>being bold <i> being both </b> being italic </i> is a malformed CFG but a perfectly valid CSG.
Ironically it's the one advantage XML type notation has over Lisp type notation when it comes to expressiveness. It's rather unfortunate that, essentially, all XML tools assume proper nesting.