Adding \label{} in pseudocodeenvironments works for pdf rendering, but in html it completely destroys the env (no pseudocode output at all). To refer to specific lines of an algorithm written in pseudocode I currently have to hard-write the number of the line, hence no cross-referencing possible.