Some attributes seem to return only boolean values, regardless of whether the true value is "true" or "false." One of them is disabled. The linked page lists all the attributes that are considered logical values, any other attribute should return the attribute value.
"The following are considered boolean attributes and return either true or null: async, autofocus, autoplay, checked, compact, complete, controls, declare, defaultchecked, defaultselected, defer, disabled , drag and drop, completed, formnovalidate, hidden, undefined , iscontenteditable, ismap, itemscope, loop, multiple, muted, nohref, noresize, noshade, novalidate, nowrap, open, paused, pubdate, readonly, required, reverseed, round, seamless, search, selection, spelling, veracity, willvalidate " . [ Selenium: WebElement.getAttribute () ]