fake_html.Append("<attrib ");How about using <attrs>, the same as the XML code path?
String ProcessingInstruction::GetAttribute(const String& name) {Missing newline.
return attributes_.Contains(name) ? attributes_.at(name) : String("");Can we use `attributes_.find(name)` here instead so that the cost of lookup is only paid once?
EXPECT_EQ("", pi->GetAttribute("value"));The web-exposed `getAttribute()` returns null if there's no such attribute to distinguish between missing attribute and empty value. Can we do the same?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
How about using <attrs>, the same as the XML code path?
Done
String ProcessingInstruction::GetAttribute(const String& name) {Noam RosenthalMissing newline.
Done
return attributes_.Contains(name) ? attributes_.at(name) : String("");Can we use `attributes_.find(name)` here instead so that the cost of lookup is only paid once?
Done
The web-exposed `getAttribute()` returns null if there's no such attribute to distinguish between missing attribute and empty value. Can we do the same?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |