Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Don't convert attribute to boolean unless the default is a boolean. #1356 #1511
Yes, the condition is a bit complicated. It is trying to convert a string to a boolean only when the type of the attribute is boolean, but we don't actually have any data on what the type should be. So we look at the default value (if any) and if it is boolean, then convert, or if it is
In v3.0, we may want to have a more complete description of valid MathML, and include that sort of information for this kind of use (as well as validating MathML input, which we don't currently do).