Update attributes.js

remove attr.specified test on option ,use elem.value != null && elem.value != "null" instead