Applying patch to fix Html attribute comparisons