yes, it could be improved in the future. Some attribute values do not translate "as-is" to CSS values though, so I figured it would be simpler to just discard the attributes in the first version.